<div id="div_qlsh" class="left" style="width:510px">

<% if @question_list.published %>

  <%= render partial: 'question_lists/published',
      locals: { question_list: @question_list } %>

<% else %>

  <%= render partial: 'question_lists/unpublished',
      locals: { question_list: @question_list } %>

<% end %>

</div>
<div class="right frame" style="width:220px;height:200px">
  <div class="area">
    <p>
      <%= author_name(@question_list) %>
      创建于 <%= date_text @question_list.created_at %>
    </p>
    <p>属于<%= @question_list.section.name %></p>
    <p><%= @question_list.questions.count %>个题目</p>
    <p>
      <% if @question_list.vote %>
      投票中
      <% else %>
      未进行投票
      <% end %>
    </p>
  </div>
</div>